#include <cstdio>
#include <cstring>

char buf[120];
char *py[] = {"ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu"};

int buf2[10];

int main() {
	scanf("%s", buf);
	int len = strlen(buf);
	int sum = 0;
	for (int i=0; i<len; i++) {
		sum += buf[i]-'0';
	}
	int cnt = 0;
	while (sum > 0) {
		int t = sum % 10;
		buf2[cnt++] = t;
		sum /= 10;
	}
	bool first = true;
	for (int i=cnt-1; i>=0; i--) {
		if (first) first = false;
		else printf(" ");
		printf("%s", py[buf2[i]]);
	}
	printf("\n");
	return 0;
}
